package com.es.system;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;
/**
 * 菜单角色维护-保存
 * @author Administrator
 *
 */

public class ManageMenuListAction extends ActionSupport implements ServletRequestAware{

	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   String roleId = request.getParameter("roleId");
		   String result = request.getParameter("result");
		   SysBiz biz = new SysBiz();
		   boolean bool = biz.manageMenu(roleId, result);
		   if(bool)
			   request.setAttribute("message", "保存角色操作成功！");
		   else
			   request.setAttribute("message", "保存角色操作失败！");
		   request.setAttribute("roleId", roleId);
		   return "success";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}
